import React, {Component} from "react";

class List extends Component {
    constructor(props){
        super(props);
        this.state = {  }
    }
    render(){
        return <h2>Wang-page- ){this.state.length}</h2>
    }
    componentDidMount(){
       console.log(this.props) 
       let tempId = this.props.valueOf.length
       this.setState({length:tempId})
    }
}

export default List;